package cn.gok.io;

import java.io.*;

/**
 * @ClassName 转换流
 * @Description TODO
 * @Author HP
 * @Date 17:34 2022/7/7
 * @Version 1.0
 **/
public class 转换流 {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream(""),"utf-8");
//        System.out.println(isr.read());
        char bs[] = new char[10];
        int len = 0;
        while ((len=isr.read(bs))!=-1){
            System.out.println(new String(bs,0,len));
        }
        isr.close();
    }

}
